import {request} from 'umi';

export function getList(params = {}) {
    return request('/api/crud/getList', {
        prefix: 'https://api.baijia.com/mock/2545',
        method: 'POST',
        data: {
            ...params,
        },
    });
}

export function saveItem(params = {}) {
    return request('/api/crud/save', {
        method: 'POST',
        prefix: 'https://api.baijia.com/mock/2545',
        data: {
            ...params,
        },
    });
}

export function delItem(params = {}) {
    return request('/api/crud/del', {
        method: 'POST',
        prefix: 'https://api.baijia.com/mock/2545',
        data: {
            ...params,
        },
    });
}

